package com.deplume.ssm.mapper.admin;

import com.deplume.ssm.common.Page;
import com.deplume.ssm.pojo.admin.Advertise;
import com.deplume.ssm.pojo.admin.Customer;
import com.deplume.ssm.pojo.extra.ChangeStatus;

import java.util.List;

/**
 * Created by blake on 2016/7/28.
 */
public interface ICustomerRelativeMapper {
    public List<Customer> returnCustomerInfos(Page page) throws Exception;
    public Customer returnCustomerInfo(int id) throws Exception;
    public List<Customer> findCustomerByName(Page page) throws Exception;
    public void changeCustomerStatus(ChangeStatus changeStatus) throws Exception;
    public void deleteCustomerById(int id) throws Exception;
    public void updateCustomerInfo(Customer customer) throws Exception;

    public List<Advertise> returnAllAdvertisement(Page page) throws Exception;
    public void updateAdvertisementById(Advertise advertise) throws Exception;
    public void insertAdvertisement(Advertise advertise) throws Exception;
    public List<Advertise> findAdvertisementByName(Page page) throws
            Exception;
    public void deleteAdvertisementById(int id) throws Exception;
    public void changeAdvertisementStatus(ChangeStatus changeStatus) throws
            Exception;
}
